import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';

import { SafeAreaView } from 'react-navigation';
import Items from '../components/items';
import BaseStyle from '../constants/Style';

export default class ListScreen extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    const {
      navigation: { navigate },
    } = this.props;
    return (
      <SafeAreaView
        style={[BaseStyle.flex, styles.homebg]}
        forceInset={{ top: 'never' }}>
        <View style={styles.container}>
          <Items LeftText={'效果一'} />
          <Items LeftText={'效果二'} />
          <Items LeftText={'效果三'} RightIcon={'\ue615'} />
          <Items LeftIcon={'\ue624'} LeftText={'效果四'} RightIcon={'\ue615'} />
          <Items
            LeftIcon={'\ue624'}
            LeftText={'效果五'}
            RightIcon={'\ue615'}
            RightText={'更多'}
          />
        </View>
      </SafeAreaView>
    );
  }
}

const styles = StyleSheet.create({
  homebg: {
    backgroundColor: '#eee',
  },
  container: {
    ...BaseStyle.flex,
    paddingTop: 20,
  },
});
